package com.jcn.seckill.redis;

public class GoodsKey extends BasePrefix{

	private GoodsKey(int expireSeconds, String prefix) {
		super(expireSeconds, prefix);
	}
	//有效期60秒，如果有效期过长，数据的即时性就不高，例如数据发生了变化，页面列表还没有变化
	public static GoodsKey getGoodsList = new GoodsKey(60, "gl");
	public static GoodsKey getGoodsDetail = new GoodsKey(60, "gd");
	//永久不失效
	public static GoodsKey getMiaoshaGoodsStock= new GoodsKey(0, "gs");
}
